<%@page import="com.hdl.entity.MallProduct"%>
<%@ page language="java" pageEncoding="UTF-8"%><!DOCTYPE html>
<html>
<head>
<title>Insert title here</title>
<jsp:include page="/admin/head.jsp"></jsp:include>
</head>
<body>
<jsp:include page="/admin/header.jsp"></jsp:include>
<jsp:include page="/admin/left-menu.jsp?leftMenu=3"></jsp:include>
<jsp:include page="/admin/footer.jsp"></jsp:include>


      <section>
      <nav aria-label="breadcrumb">
			<ol class="breadcrumb">
				<li class="breadcrumb-item">管理首页</li>
				<li class="breadcrumb-item">产品中心</li>
				<li class="breadcrumb-item">产品管理</li>
				<li class="breadcrumb-item active">修改</li>
			</ol>
		</nav>
        <% MallProduct mp = (MallProduct)request.getAttribute("mpllproduct");%> 
		      <div class="card container-md">
        <div class="card-body">
          <form name="updateForm" action="admin/mallproduct-update2.let" method="POST">
           <input type="hidden" name="userid" value="<%=mp.getMallProductId() %>"/>
           
            <div class="form-group row">
              <label class="col-sm-3 col-form-label text-right"><b class="text-danger">*</b>商品名称</label>
              <div class="col-sm-9">
                <input required="required" class="form-control"  name="name" value="<%=mp.getMallProductName()%>">
              </div>
            </div>

            <div class="form-group row">
              <label class="col-sm-3 col-form-label text-right"><b class="text-danger">*</b>商品类型</label>
              <div class="col-sm-9">
                <input required="required" class="form-control" name="type"value="<% 
      if(mp.getMallTypeId()==1){ out.write("锅底");}
      if(mp.getMallTypeId()==2){ out.write("涮菜");}
      if(mp.getMallTypeId()==3){ out.write("特色蘸料");}
      if(mp.getMallTypeId()==4){ out.write("小吃甜品");}
      if(mp.getMallTypeId()==5){ out.write("特色饮品");}
      %>">
              </div>
            </div>
            
            <div class="form-group row">
              <label class="col-sm-3 col-form-label text-right"><b class="text-danger">*</b>商品价格</label>
              <div class="col-sm-9">
                <input required="required" class="form-control"  name="price"value="<%=mp.getMallProductPrice1() %>">
              </div>
            </div>
            
            <div class="form-group row">
              <label class="col-sm-3 col-form-label text-right"><b class="text-danger">*</b>商品图片地址</label>
              <div class="col-sm-9">
                <input required="required" class="form-control"  name="path"value="<%=mp.getMallProductPath() %>">
              </div>
            </div>
            
            <div class="form-group row">
              <label class="col-sm-3 col-form-label text-right"><b class="text-danger">*</b>商品描述</label>
              <div class="col-sm-9">
                <input required="required" class="form-control"  name="ms"value="<%=mp.getMallProductMs() %>">
              </div>
            </div>
            
            <div class="form-group row">
              <label class="col-sm-3 col-form-label text-right"><b class="text-danger">*</b>商品积分</label>
              <div class="col-sm-9">
                <input required="required" class="form-control"  name="score"value="<%=mp.getMallProductScore() %>">
              </div>
            </div>
            
            

            <div class="form-group row">
              <div class="col-sm-9 offset-sm-3">
                <button class="btn btn-primary" type="button" onclick="history.go(-1);">返回 </button>
                <button class="btn btn-danger" type="submit"><i class="fa fa-edit mr-2"></i>修改 </button>
              </div>
            </div>

          </form>
        </div>
      </div>
      </section>
</body>
</html>